home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILFILE / UNPROPTC.LZH / RESCMD.DOC < prev    next >
Text File  |  1983-08-11  |  4KB  |  81 lines

  1.  
  2.               RESIDENT COMMAND INTERPRETER
  3.                   John Chapman
  4.                    844 S. Madison St.
  5.                 Hinsdale, Illinois 60521
  6.                  COMPUSERV ID 70205,1217
  7.     DISCLAIMER
  8.     This  modification is provided without warranty of any kind.  The
  9.     author    assumes no liability for failure of this code to  perform
  10.     in  any  environment.  The  user is  completely  responsible  for
  11.     determining   the  applicability  of  this  modification   to    a
  12.     particular environment.
  13.     LIMITATIONS
  14.     This modification causes the transient portion of COMMAND.COM  to
  15.     be  made resident at system IPL.   Re-booting the system with  an
  16.     unmodified   COMMAND.COM   is  the  only  way  to   remove   this
  17.     modification.  This  modification  alters  the    starting  segment
  18.     [paragraph] address available to programs, lowering the amount of
  19.     storage  available  by 4288 bytes [for PC/DOS 1.1 with    a  normal
  20.     load   segment    address  of  02C1].    The  starting  segment  of
  21.     COMMAND.COM can be found at location 0000:9E,  and should display
  22.     [debug] as     0000:009E 2C 01
  23.     CONTENTS
  24.     This   modification,   supplied  as  a    BASIC    program    called
  25.     "RESCMD.COM"  (Or  CLOCKCMD.BAS for realtime clock users)  which
  26.     will read in an UNMODIFIED DOS 1.1 COMMAND.COM and produce a  new
  27.     file, "COMMAND.CMD" which has all the mods installed. This set of
  28.     modifications  alters  the  IBM  Personal  Computer  DOS  command
  29.     interpreter  (COMMAND.COM)  to remain entirely    resident,  rather
  30.     than  be half resident and half transient.  The whole purpose  of
  31.     this  modification is to suppress 99% of the occurrances  of  the
  32.     refresh   of  the  transient  portion.     This  will  remove   the
  33.     requirement  to  ALWAYS have a disk with a valid  COMMAND.COM  in
  34.     drive  A.  This  change has been especially useful with  multiple
  35.     DISKCOPY  type activities,  and with those  application  packages
  36.     which  use all of memory,  including the top 4880 bytes where the
  37.     transient COMMAND.COM resides.
  38.     The  modification  merely omits the relocation of  the    transient
  39.     portion of COMMAND.COM, and sets the first free paragraph address
  40.     to  be    the area behind the transient routines,  rather than  the
  41.     small "resident" portion.
  42.                     1
  43.  
  44.     PC/DOS Initialization Overview
  45.     The  IBM  Personal  Computer DOS is brought in from disk  by  the
  46.     bootstrap loader read from track 0 of drive A by the ROM routines
  47.     after the initial hardware tests are performed at  power-on,  and
  48.     subsequently  when  ALT-CTRL-DEL re-boot is  requested.  In  both
  49.     cases, the following sequence occurs:
  50.          1) The "boot" program is read from track 0.
  51.          2) It reads IBMBIO.COM  from  a  specific location
  52.          3) IBMBIO is given control and builds the environmental
  53.         control blocks, initializes peripherals, and then
  54.         reads IBMDOS.COM from its specific location on disk
  55.          4) IBMDOS is passed control. After initializing the
  56.         remainder of the operating system, IBMDOS loads
  57.         the COMMAND.COM file [the command interpreter], and
  58.         passes it control
  59.          5) The command interpreter immediately relocates all of the
  60.         main line code for command prompting,  parsing,  and  the
  61.         code which supports the resident commands to the high end
  62.         of memory, where it can be more easily destroyed by
  63.         wandering programs.
  64.          6) Resident COMMAND.COM will now [pretend to] detect a
  65.         checksum error in the transient portion of itself,
  66.         immediately causing a Re-load from disk, thus setting
  67.         the tone for a long and tedious interaction, interrupted
  68.         frequently by disk I/O and requests for a DOS disk
  69.         in the default drive.
  70.     REAL-TIME CLOCK VERSION
  71.     An   alternate    version  of  the  modification    is  supplied   as
  72.     "CLOCKCMD.BAS".   This version REQUIRES THE PRESENCE OF A  CLOCK.
  73.     The  DOS  DATE    and TIME commands ARE DISABLED by  this  version,
  74.     requiring the user to employ the software provided with the clock
  75.     card  to access date and time.     The space formerly used by  DATE
  76.     and time is reused for three new RESIDENT commands,  BEEP,  PAGE,
  77.     and CLS.  PAGE causes the printer (LPT1:) to skip to top-of form.
  78.     CLS clears the active display.    BEEP causes a warbling tone to be
  79.     produced.
  80.  
  81.